package com.sky.mapper;

import com.sky.dto.GoodsSalesDTO;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Mapper
public interface ReportMapper {
  /**
   * 根据动态条件统计营业额数据
   * @param map
   * @return
   */
  Double getTurnoverByDay(Map map);

  Long getUserCount(Map map);

  Integer getOrder(Map map);

  Integer getOrderCount(Map map);

  List<GoodsSalesDTO> getSalesTop(LocalDateTime beginTime, LocalDateTime endTime);
}
